#include <bits/stdc++.h>
using namespace std;
int a[1000001];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  int age;
  cin >> age;
  int ans = 0;
  for (int i = 1; i <= n; i++) {
    if (age <= a[i]) {
      ans++;
    }
  }
  cout << ans;
  return 0;
}